<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script language="javascript" type="text/javascript" src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/jquery.js"></script>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/frame.js" language="javascript" type="text/javascript"></script>
<link href="http://www.ucmaim.com/Public/Ucmaim/Admin/css/style.css" rel="stylesheet" type="text/css" />

<!--[if IE 6]>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/DD_belatedPNG.js" language="javascript" type="text/javascript"></script>
<script>
  DD_belatedPNG.fix('.nav ul li a,.top_link ul li,background');   /* string argument can be any CSS selector */
</script>
<![endif]-->
</head>
<body class="showmenu">
<style type="text/css">
    .layui-layer-tips{width:auto !important;}
</style>
<script src="http://www.ucmaim.com/Public/Ucmaim/Admin/js/common.js" type="text/javascript"></script>
<script src="/Public/Layer/layer.js" type="text/javascript"></script>
<script src="/Public/DatePicker/DatePicker.js" type="text/javascript"></script>
<link href="/Public/DatePicker/Css/DatePicker.css" type="text/css" rel="stylesheet" />
<table width="100%" height="31px" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
    <tr>
        <td height="31"><div class="titlebt">资金明细查询</div></td>
    </tr>
</table>

<div class="main">
    <div class="operate">
        <div class="left_pad">
            <form id="search" method="post" action="<?php echo U('Admin/Finance/TradingRecords');?>">
                <label>交易时间：<input type="text" class="inp_default" style="width:180px; text-align: center;" name="date" id="datePicker" readonly /></label>

                <input type="text" name="keyword" title="关键字" class="inp_default" value="<?php echo ($keyword); ?>" placeholder="请输入流水号/交易主体用户名"><input type="submit" class="btn_blue" value="查  询" style="float: right;">
                <input type="hidden" name="cid" id="cid"/>
                <script type="text/javascript">
                    var dateRange1 = new pickerDateRange('datePicker', {
                                isTodayValid: true,
                                aToday: 'aTodayDemo1', //今天
                                aRecent30Days: 'aRecent30DaysDemo1', //最近30天
                                aRecent90Days: 'aRecent90DaysDemo1', //最近90天
                                aRecent1Year: 'aRecent1YearDemo1',//最近1年
                                startDate: '<?php echo ($startDate); ?>',
                                endDate: '<?php echo ($endDate); ?>',
                                needCompare: false,
                                target: 'searchForm',
                                defaultText: ' ~ ',
                                autoSubmit: true,
                                inputTrigger: 'datePicker',
                                theme: 'ta',
                                magicSelect: false,
                    });
                </script>
            </form>
        </div>
    </div>
    <div class="list">



            <table width="100%">
                <tr>
                    <!--<th><input  name="chkall" type="checkbox" id="chkall" onClick="selectall(this.form)"></th>-->
                    <th>交易流水号</th>
                    <th>支付宝流水</th>
                    <th>交易日期</th>
                    <th>交易金额</th>
                    <th>交易主体</th>
                    <th>交易客体</th>
	                <th>交易说明</th>
                </tr>

                <?php if(empty($list)): ?><tr>
                        <td colspan="9">本区域暂无数据显示...</td>
                    </tr>
                    <?php else: ?>
                    <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                            <td><?php echo ($v["order_sn"]); ?></td>
                            <td><?php echo ($v["log_paysn"]); ?></td>
                            <td><?php echo (date("Y-m-d H:i:s",$v["log_time"])); ?></td>
                            <td><?php echo ($v["log_amount"]); ?></td>
                            <td><?php echo (replacement($v["master_name"], $v['master_mobile'])); ?></td>
                            <td><?php echo (replacement($v["slave_name"], $v['slave_mobile'])); ?></td>
	                        <td><?php echo ($v["log_remark"]); ?></td>
                        </tr><?php endforeach; endif; else: echo "" ;endif; endif; ?>


            </table>
    </div>

    <div class="page">
        <?php echo ($page); ?>
    </div>

</div>

</body>
</html>